import request from '@/utils/request'

// 查询运营商用户列表
export function listUser(query) {
  return request({
    url: '/operator/user/list',
    method: 'get',
    params: query
  })
}

// 查询运营商用户详细
export function getUser(operatorId) {
  return request({
    url: '/operator/user/' + operatorId,
    method: 'get'
  })
}

// 新增运营商用户
export function addUser(data) {
  return request({
    url: '/operator/user',
    method: 'post',
    data: data
  })
}

// 修改运营商用户
export function updateUser(data) {
  return request({
    url: '/operator/user',
    method: 'put',
    data: data
  })
}

// 删除运营商用户
export function delUser(operatorId) {
  return request({
    url: '/operator/user/' + operatorId,
    method: 'delete'
  })
}

// 导出运营商用户
export function exportUser(query) {
  return request({
    url: '/operator/user/export',
    method: 'get',
    params: query
  })
}
